@if(!is_null($images))
<a href="javascript:;" class="grid-row-view" data-toggle="modal" data-target="#images_{{ $id }}">
    <i class="fa fa-eye"></i>
</a>
<div class="modal fade" id="images_{{ $id ?? 0 }}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" style="font-size: 36px;">&times;</button>
                <h4 class="modal-title">图片</h4>
            </div>
            <div class="modal-body">
                @foreach($images as $value)
                    <img src="{{ fileIdToUrl($value) }}" alt="主图" style="display: block;max-width: 100%; max-height: 70vh;margin: 0 auto">
                @endforeach
            </div>
        </div>
    </div>
</div>
@endif
